uxcore-album
React album


Development
git clone https://github.com/uxcore/uxcore-album
cd uxcore-album
npm install
npm run server
if you'd like to save your install time,you can use uxcore-tools globally.
npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-album
cd uxcore-album
npm install
npm run dep
npm run start
Test Case
npm run test
Coverage
npm run coverage
Demo
http://uxcore.github.io/components/album
Contribute
Yes please! See the CONTRIBUTING for details.
API
Album.Props
Name | Type | Required | Default | Comments |
---|
width | number or string | no | '' | the default image cover's width |
height | number or string | no | '' | the default image cover's height |
enableKeyBoardControl | boolean | no | true | whether the album can be controlled by the keyboard navigation |
Photo.Props
Name | Type | Required | Default | Comments |
---|
src | string | yes | '' | same as img's src |